package com.itheima.po;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class LoginParam {
    @NotNull(message = "用户名不能为空")
    @Length(min = 2, max = 20, message = "姓名长度必须在[2,20]之间")
    private String username;
    @NotNull(message = "用户名不能为空")
    @Length(min = 2, max = 20, message = "姓名长度必须在[2,20]之间")
    private String password;
}
